package com.fand.common.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import com.fand.common.enums.ConditionOnField;
import org.springframework.stereotype.Component;

/**
 * 字段
 *
 * Author: zhangjiabin
 * Email: javaboyok@163.com
 * CreateDate: 2021/6/6
 * Version: 1.0
 */
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Component
public @interface DataField {

    String tableFiled() default "";
    ConditionOnField condition() default ConditionOnField.EQ;
}
